const defaultState = {
    visible: false,
    field: undefined,
    value: undefined,
    remark: "",
    logId: undefined
};
export default function exportReceivable(state = defaultState, action) {
    const {type, payload} = action;
    switch (type) {
        case 'GH_ORDER.SHOW_EDIT_DATE_AND_REMARK':
            return {...state, visible: true, ...payload};
        case 'GH_ORDER.UPDATE_EDIT':
            return {...state, ...payload};
        case 'GH_ORDER.HIDE_EDIT_DATE_AND_REMARK':
            return {...state, visible: false, field: undefined, value: undefined, logId: undefined, remark: ""};
        default:
            return state;
    }
}

